home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / cards / VIA8233.conf < prev    next >
Text File  |  2006-01-09  |  3KB  |  207 lines

  1. #
  2. # Configuration for the VIA8233/VIA8233C/VIA8235 chip with 4/6 multi-channel support
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. VIA8233.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type hw
  13.     card $CARD
  14.     device 0
  15. }    
  16.  
  17. # default with softvol/dsnoop
  18. # VIA8233 supports multi-playback
  19. VIA8233.pcm.default {
  20.     @args [ CARD ]
  21.     @args.CARD {
  22.         type string
  23.     }
  24.     type asym
  25.     playback.pcm {
  26.         type plug
  27.         slave.pcm {
  28.             type softvol
  29.             slave.pcm {
  30.                 type hw
  31.                 card $CARD
  32.                 device 0
  33.             }
  34.             control {
  35.                 name "PCM Playback Volume"
  36.                 card $CARD
  37.             }
  38.         }
  39.     }
  40.     capture.pcm {
  41.         type plug
  42.         slave.pcm {
  43.             @func concat
  44.             strings [ "dsnoop:" $CARD ]
  45.         }
  46.     }
  47. }
  48.  
  49. <confdir:pcm/surround40.conf>
  50.  
  51. VIA8233.pcm.surround40.0 {
  52.     @args [ CARD ]
  53.     @args.CARD {
  54.         type string
  55.     }
  56.     type hooks
  57.     slave.pcm {
  58.         type hw
  59.         card $CARD
  60.         device 1
  61.     }
  62.     hooks.0 {
  63.         type ctl_elems
  64.         hook_args [
  65.             {
  66.                 name "Channel Mode"
  67.                 device 0
  68.                 preserve true
  69.                 value "4ch"
  70.                 lock true
  71.                 optional true
  72.             }
  73.             # for old drivers
  74.             {
  75.                 name "Line-In As Surround"
  76.                 preserve true
  77.                 value true
  78.                 optional true
  79.             }
  80.             {
  81.                 name "Surround Down Mix"
  82.                 device 0
  83.                 preserve true
  84.                 value off
  85.                 lock true
  86.                 optional true
  87.             }
  88.         ]
  89.     }
  90. }
  91.  
  92. <confdir:pcm/surround41.conf>
  93. <confdir:pcm/surround50.conf>
  94. <confdir:pcm/surround51.conf>
  95.  
  96. VIA8233.pcm.surround51.0 {
  97.     @args [ CARD ]
  98.     @args.CARD {
  99.         type string
  100.     }
  101.     type hooks
  102.     slave.pcm {
  103.         type hw
  104.         card $CARD
  105.         device 1
  106.     }
  107.     hooks.0 {
  108.         type ctl_elems
  109.         hook_args [
  110.             {
  111.                 name "Channel Mode"
  112.                 device 0
  113.                 preserve true
  114.                 value "6ch"
  115.                 lock true
  116.                 optional true
  117.             }
  118.             # for old drivers
  119.             {
  120.                 name "Line-In As Surround"
  121.                 preserve true
  122.                 value true
  123.                 optional true
  124.             }
  125.             {
  126.                 name "Mic As Center/LFE"
  127.                 preserve true
  128.                 value true
  129.                 optional true
  130.             }
  131.             {
  132.                 name "Surround Down Mix"
  133.                 device 0
  134.                 preserve true
  135.                 value off
  136.                 lock true
  137.                 optional true
  138.             }
  139.             {
  140.                 name "Center/LFE Down Mix"
  141.                 device 0
  142.                 preserve true
  143.                 value off
  144.                 lock true
  145.                 optional true
  146.             }
  147.         ]
  148.     }
  149. }
  150.  
  151. <confdir:pcm/iec958.conf>
  152.  
  153. VIA8233.pcm.iec958.0 {
  154.     @args [ CARD AES0 AES1 AES2 AES3 ]
  155.     @args.CARD {
  156.         type string
  157.     }
  158.     @args.AES0 {
  159.         type integer
  160.     }
  161.     @args.AES1 {
  162.         type integer
  163.     }
  164.     @args.AES2 {
  165.         type integer
  166.     }
  167.     @args.AES3 {
  168.         type integer
  169.     }
  170.     type hooks
  171.     slave.pcm {
  172.         type hw
  173.         card $CARD
  174.         device 0
  175.         subdevice 3
  176.     }
  177.     hooks.0 {
  178.         type ctl_elems
  179.         hook_args [
  180.             {
  181.                 name "IEC958 Playback AC97-SPSA"
  182.                 lock true
  183.                 preserve true
  184.                 value 3
  185.             }
  186.             {
  187.                 name "IEC958 Playback Default"
  188.                 lock true
  189.                 preserve true
  190.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  191.             }
  192.             {
  193.                 name "IEC958 Playback Switch"
  194.                 lock true
  195.                 preserve true
  196.                 value true
  197.             }
  198.             {
  199.                 name "IEC958 Output Switch"
  200.                 lock true
  201.                 preserve true
  202.                 value true
  203.             }
  204.         ]
  205.     }
  206. }
  207.